// /////////////////////////////////////////////////////////////////////////////
//
// Name:            RGBPanel.h
// Author:          Michael Bartsch
//
// Desc :           The interface for the CRGBPanel class.
//
// License:         Copyright (C) 2008-2009 Michael Bartsch
//
//                  This program is free software: you can redistribute it
//                  and/or modify it under the terms of the GNU General Public
//                  License as published by the Free Software Foundation,
//                  either version 3 of the License, or (at your option) any
//                  later version.
//
//                  This program is distributed in the hope that it will be
//                  useful, but WITHOUT ANY WARRANTY; without even the implied
//                  warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
//                  PURPOSE. See the GNU General Public License for more
//                  details.
//
//                  You should have received a copy of the GNU General Public
//                  License along with this program. If not, see
//                  <http://www.gnu.org/licenses/>.
//
// /////////////////////////////////////////////////////////////////////////////

#ifndef __C_RGBPANEL_H_INCLUDED__
#define __C_RGBPANEL_H_INCLUDED__

// Include required header file(s).
#include "../../App.h"

#include "../../../Engine/ColourAnalyser.h"


// Forward Declarations.
class CColourAnalyser;

// Enumerations.
enum RGBPanel_Enum
{
   RGBPanel_R = 0,
   RGBPanel_G,
   RGBPanel_B
};


// The CRGBPanel class.
//! This panel displays the colour analysis of one of the three main
//! colours.
class CRGBPanel : public wxPanel
{
public:

    //! Constructor
    //! @param parent The window parent.
    //! @param panelType Which colour analysis should be displayed?
    //! @see RGBPanel_Enum
    CRGBPanel(wxWindow *parent, char panelType);

    // Event functions.
    //! Handles the paint event.
    void onPaint(wxPaintEvent &event);


private:

    CColourAnalyser *pColourAnalyser;

    char panelColour;

    DECLARE_EVENT_TABLE()
};

#endif
